@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .search {
        .table {
            @include bg("assets/images/search_table_pc.png");
        }
    }
    .news_abstract {
        width: calc(100% - 260px);
    }
    .searchBox {
        max-width: 1200px;
        margin: 0 auto;
        min-height: 300px;
        position: relative;
        .hiddenImg {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 210px;
            height: 170px;
            font-size: 24px;
            text-align: center;
            color: #666;
        }

        .problem_list {
            font-size: 24px;
            .problem_item {
                padding: 20px 10px;
                border-bottom: 1px solid #ccc;
                h5 {
                    color: #a32626;
                    height: 40px;
                    line-height: 40px;
                }
                p {
                    font-size: 18px;
                    line-height: 30px;
                    height: 60px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }
            }
        }
    }

    .pageSize {
        max-width: 1200px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60px;
        font-size: 22px;
    }
    /* 动画 进入  */
    .showTitleImg-enter-active {
        animation: hiddenImg 1.5s;
    }
    // .showTitleImg-leave-active {
    //     animation: hiddenImg_fan 1s;
    // }
    @keyframes hiddenImg {
        0% {
            transform: translate(20%, -50%);
            opacity: 0;
        }
        100% {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }
    @keyframes hiddenImg_fan {
        0% {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translate(-120%, -50%);
        }
    }
}
@mixin home_sm {
    .search {
        .table {
            @include bg("assets/images/search_table_pc.png");
        }
    }
    .personnel_item {
        display: flex !important;
        align-items: center;
    }
    .abstract_top {
        .info_name {
            width: 100% !important;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
    .searchBox {
        max-width: 12rem;
        margin: 0 auto;
        min-height: 6rem;
        position: relative;
        .hiddenImg {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 4.2rem;
            height: 3.4rem;
            font-size: 0.24rem;
            text-align: center;
            color: #666;
        }
        .problem_list {
            font-size: 0.24rem;
            margin: 0 0.3rem;
            .problem_item {
                padding: 0.2rem 0.1rem;
                border-bottom: 0.01rem solid #ccc;
                h5 {
                    color: #a32626;
                    padding-top: 0.2rem;
                    padding-bottom: 0.2rem;
                }
                p {
                    font-size: 0.18rem;
                    line-height: 0.3rem;
                    height: 0.6rem;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }
            }
        }
    }
    .searchPageSizeHeight {
        height: 0.8rem;
    }
    .searchPageSize {
        max-width: 12rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 0.6rem;
        padding-bottom: 0.2rem;
        font-size: 0.22rem;
        margin: 0;
        position: absolute;
        bottom: 0;
        width: 100%;

        .el-pagination {
            margin: 0 !important;
            height: 0.6rem !important;
        }
    }
    /* 动画 进入  */
    .showTitleImg-enter-active {
        animation: hiddenImg 1.5s;
    }
    // .showTitleImg-leave-active {
    //     animation: hiddenImg_fan 1s;
    // }
    @keyframes hiddenImg {
        0% {
            transform: translate(20%, -50%);
            opacity: 0;
        }
        100% {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }
    @keyframes hiddenImg_fan {
        0% {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translate(-120%, -50%);
        }
    }
}
//* 设备宽度大于 320px 小于 640px */
@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 640px) and (max-width: 1024px) {
    @include home_lg;
}
@media screen and (min-width: 1024px) {
    @include home_lg;
}
